<template>
	<view>
		<view class="demo-box">
			<text>
				1.系统随机生成1-100的数字让玩家猜
				2.玩家共有5次机会
				3.在5次之内玩家猜成功
				4.点击开始游戏进入界面
				5.猜对或猜对玩家可重新开始
			</text>

			<!-- deleta="1"  返回1层,写几就返回几层,一般来说都是返回一层 -->
			<navigator open-type="navigateBack" delta="1"> 
				<button type="default">返回</button>
			</navigator>
			
			<button type="default" @click="fanhui">点击返回</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			fanhui(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style>
	.demo-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		height: 80vh;
	}

	text {
		line-height: 100rpx;
	}
</style>
